<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/5/17
 * Time: 16:27
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

namespace app\api\controller\v1;

use app\common\lib\Show;
use app\common\lib\Status;
use app\common\model\SpecsSeasoning;
use think\App;

class Seasoning extends Base
{
    protected $model = null;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = new SpecsSeasoning();
    }

    public function getSeasoningByList()
    {
        $where = [
            ["status", "=", 1]
        ];
        $row = $this->model->getBaseByListAll($where, "*", "id asc");
        $lists = [];
        foreach ($row as $k => $v) {
            $lists[$k] = $v;

        }
        return Show::json_show(Status::mini_normal, "ok", $lists);
    }

}